<?
namespace Site\Controller
{
    /**
     * Error pages
     */
    class Error extends \Api\Controller
    {
        /**
         * 404
         */
        public function indexAction(array $param=array())
        {
            $this->layout->SetLayout('error.tpl');
            $this->layout->SetTitle('404 Not Found');
            $this->view->display('404');
                        
        }
        
        /**
         * 401
         */
        public function error401Action(array $param=array())
        {
            $this->view->display('401');
            $this->layout = null;
        }
    }
}
?>